﻿@model MvcEnrollment.Models.Course_Price

@{
    ViewBag.Title = "AddPrice";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@ViewData["CourseID"]
<h2>Add Price</h2>
        <br />
@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Price</legend>
        @Html.ValidationMessage("paymentRepeat")
        <div class="editor-label">
            @Html.LabelFor(model => model.Payment_Type)
        </div>
        <div class="editor-field">
            @Html.RadioButton("PaymentType", "Fully", new { @checked = "checked" })
            Fully Enrollment&nbsp;&nbsp;
            @Html.RadioButton("PaymentType", "Monthly")
            Monthly Enrollment&nbsp;&nbsp;
            @Html.RadioButton("PaymentType", "Weekly")
            Weekly Enrollment
            @Html.ValidationMessageFor(model => model.Payment_Type)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Total_Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Total_Price)
            @Html.ValidationMessageFor(model => model.Total_Price)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Total_Recurrings)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Total_Recurrings)
            @Html.ValidationMessageFor(model => model.Total_Recurrings)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Recurring_Amount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Recurring_Amount)
            @Html.ValidationMessageFor(model => model.Recurring_Amount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Deposit)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Deposit)
            @Html.ValidationMessageFor(model => model.Deposit)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Discount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Discount)
            @Html.ValidationMessageFor(model => model.Discount)
        </div>
         <input type="hidden" name="courseID" value="@ViewData["courseID"]">
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
